/*
 * Copyright (c) 2018, dreamkaylee@foxmail.com All Rights Reserved.
 */

package com.common.model;

import java.util.Map;

/**
 * $.ajax后需要接受的JSON
 * 
 * @author limk
 * @date 2018年2月12日 下午8:57:10
 * @version 1.0
 */
public class AjaxJson {

	/**
	 * 是否成功
	 */
	private boolean success = false;
	/**
	 * 提示信息
	 */
	private String msg = "操作成功";
	/**
	 * 其他信息
	 */
	private Object data = null;
	/**
	 * 其他参数
	 */
	private Map<String, Object> attributes;

	public AjaxJson() {
		super();
	}
	
	public AjaxJson(boolean success, String msg) {
		super();
		this.success = success;
		this.msg = msg;
	}

	public boolean isSuccess() {
		return success;
	}

	public void setSuccess(boolean success) {
		this.success = success;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public Map<String, Object> getAttributes() {
		return attributes;
	}

	public void setAttributes(Map<String, Object> attributes) {
		this.attributes = attributes;
	}
}
